home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue52 / HTML / Code / AppServer / dpoCustomer.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1999-10-10  |  588 b   |  35 lines

  1. unit dpoCustomer;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   dpoBase, Db, DBTables;
  8.  
  9. type
  10.   TCustomer = class(TDataObject)
  11.   private
  12.   public
  13.     constructor Create(aDB: TDatabase); override;
  14.   end;
  15.  
  16. var
  17.   Customer: TCustomer;
  18.  
  19. implementation
  20.  
  21. {$R *.DFM}
  22.  
  23. { TCustomer }
  24.  
  25. constructor TCustomer.Create(aDB: TDatabase);
  26. begin
  27.   inherited Create(aDB);
  28.   { Inform the base class of the field(s) that comprise the OID }
  29.   OIDFieldNames.Text := 'CustNo';
  30. end;
  31.  
  32. initialization
  33.   RegisterClass(TCustomer);
  34. end.
  35.